// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入vuex配置
import Vuex from 'vuex'
import Store from './store/store.js';
Vue.use(Vuex);

// 将 Store 挂载在vue原型链上,在组件中只要使用 this.$store 即可
Vue.prototype.$store = Store;

Vue.config.productionTip = true

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  Store, //使用store
  components: { App },
  template: '<App/>'
})
